//###############
// FILE : ResetAction.java
// WRITER : Lior Zimmerman liorz06 066462300
// WRITER : Ohad Dan ohad_dan 036767960
// EXERCISE : oop ex3 2008
// DESCRIPTION:
// In charge of performing reset at search tab.
//###############
package oop.ex3.fileSearchController;
import oop.ex3.fileSearchView.GUIInitializer;
import oop.ex3.fileSearchView.GUIView;
import oop.ex3.fileSearchView.SearchTabInterface;
import oop.ex3.fileSearchView.SetupTabInterface;
/**
 * In charge of performing reset at search tab.
 */
public class ResetAction extends Controller {
	public ResetAction( GUIView gui  ) {
		super(gui);
	}
	/**
	 * Reset all data at the search tab.
	 */
	public void doAction() {
	    SearchTabInterface searchView = _gui.getSearchView();
	    SetupTabInterface setupView = _gui.getSetupView();
	    searchView.txtFilterExpSetText("");
	    searchView.txtFilterFileSetText("");
	    searchView.txtWorkDirSetText("");
	    setupView.rdoSetSelectedToScreen(true);
	    _gui.setStatus(GUIInitializer.STATUS_READY);
	}

}
